#!/bin/bash
curl=$(curl -LI 'http://localhost' -o /dev/null  -w '%{http_code}' -s)
# 10254 port is ingress-controller ingress-controller
curl_ingress_controller=$(curl -LI 'http://localhost:10254/healthz' -o /dev/null  -w '%{http_code}' -s)
if [ $curl != 404 ]
then
    exit 1
elif [ $curl_ingress_controller != 200 ]
then
    exit 1
else

    exit 0
fi